﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DosciWordPlugin.Common
{
    public static class Constant
    {
        /// <summary>
        /// 主机地址
        /// </summary>
        public const string HOST = "http://www.dosci.com/";
        public const string VERSION = "1.0.0";
        public const string HELP = "help/plugin/word/{0}.html";
        /// <summary>
        /// 登陆
        /// 请求参数：username, password
        /// 返回字符串：token
        /// </summary>
        public const string API_登陆 = "api/word/login.html";
        /// <summary>
        /// 登出
        /// 请求参数：token
        /// 无返回值
        /// </summary>
        public const string API_退出 = "api/word/logout.html";
        /// <summary>
        /// 查找参考文献所有样式列表
        /// 请求参数：无
        /// 返回数组：样式名称
        /// </summary>
        public const string API_样式列表 = "api/word/style/list.html";
        /// <summary>
        /// 获取面板中的引文条目
        /// 请求参数：token
        /// 返回数组：引文
        /// </summary>
        public const string API_面板引文 = "api/word/reference/citation/list.html";
        /// <summary>
        /// 查询当前用户的所有文献
        /// 请求参数：keyword, token
        /// 返回数组：文献
        /// </summary>
        public const string API_搜索引文 = "api/word/reference/search.html";
        /// <summary>
        /// 请求参数：id, token
        /// </summary>
        public const string API_添加到远程面板 = "api/word/reference/add.html";
        /// <summary>
        /// 请求参数：id, token
        /// </summary>
        public const string API_从远程面板删除 = "api/word/reference/delete.html";
        /// <summary>
        /// 根据文献ID和样式名称查找该参考文献
        /// 请求参数：id, style, token
        /// 返回键值对：样式名称，样式文献
        /// </summary>
        public const string API_引文格式化_指定样式 = "api/word/reference/citation.html";
        /// <summary>
        /// 请求参数：token
        /// </summary>
        public const string API_模板列表 = "api/word/template/list.html";
        public const string API_上传文档 = "api/word/upload.html";
    }
}
